//
//  XMNRotateScaleView.h
//  可旋转放大缩小的图片
//
//  Created by Mars_ZXB on 16/7/18.
//  Copyright © 2016年 BAT3. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UILabel+AdjustFont.h"
//宏定义
#define kXMNInset                    8
#define kXMNBorderInset              8
#define kXMNRotateScaleControlWidth 24


typedef NS_ENUM(NSUInteger, XMNRotateScaleViewState) {
    XMNRotateScaleViewStateNormal,
    XMNRotateScaleViewStateEditing,
};

@protocol XMNRotateScaleViewDelegate;
@interface XMNRotateScaleView : UIView

@property (nonatomic, weak) UIView *contentView; /**< 显示的具体内容view */
@property (nonatomic, weak) id<XMNRotateScaleViewDelegate> delegate;

@property (nonatomic, assign) CGSize minSize; /**< 最小的宽度 默认为CGSizeMake(88, 88)  */

@property (nonatomic, strong) UIColor *borderColor; /**< 边框颜色,默认蓝色 */
@property (nonatomic, assign) CGFloat borderWidth; /**< 边框粗细,默认为1.0f */

@property (nonatomic, assign) XMNRotateScaleViewState state;

@end


@protocol XMNRotateScaleViewDelegate <NSObject>

@optional
- (void)rotateScaleViewDidRotateAndScale:(XMNRotateScaleView *)rotateScaleView;

@end